package sh_goods_view

// 表名也是cache的tag
var TableName = "secondhand_goods_view"

// 二手商品 统计
type SecondhandGoodsView struct {
	Id int64

	PartnerId int64 `xorm:"INTEGER notnull index 'partner_id'"`
	GoodsId   int64 `xorm:"INTEGER notnull unique(sgv_g_tay) 'goods_id'"`

	TotalView int64 `xorm:"INTEGER notnull default(0) index 'total_view'"`
	TodayView int64 `xorm:"INTEGER notnull default(0) index 'today_view'"`
	MonthView int64 `xorm:"INTEGER notnull default(0) index 'month_view'"`

	YesterdayView int64 `xorm:"INTEGER notnull default(0) index 'yesterday_view'"`
	LastMonthView int64 `xorm:"INTEGER notnull default(0) index 'last_month_view'"`

	today     int64 `xorm:"INTEGER null default('') index 'today'"`
	ThisMonth int64 `xorm:"INTEGER null default('') index 'this_month'"`
}
